'use strict';

module.exports = app => {
    class UserController extends app.Controller {
        async userinfo(){
            const params = this.ctx.request.query;
            const user = await this.service.user.userinfo(params);
            const post = await this.service.user.userpost(params);
            await this.ctx.render("/bbs/user-info.html",{user,post});
        };

    }
    return UserController;
};
